package com.self.war.view;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.self.war.presenter.AdminPresenter;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.Notification;

@SuppressWarnings("serial")
@Component
public class AdminView extends CustomLayout implements View {

	public static final String VIEW_NAME = "admin";

	@Autowired
	AdminPresenter adminPresenter;

	@Override
	public void enter(ViewChangeEvent event) {
		new Notification("TODO");
	}

	public AdminPresenter getAdminPresenter() {
		return adminPresenter;
	}

	public void setAdminPresenter(AdminPresenter adminPresenter) {
		this.adminPresenter = adminPresenter;
	}
	
}
